
frank_str = 'doo be doo be doo...'
n = -1
while True:
    n = frank_str.find('doo',n + 1)   # find() 是返回它找到字符串的索引，没找到的话返回 -1
    if n == -1:
        break
    print(n,end=' ')

stooge_list = 'Moe   Larry Curly  Shemp'.split(' ')
print(stooge_list)

new_str = 'Help!'.center(10,'#')   # 宽度为10 居中对齐，如果不能居中，则会稍微偏左对齐

s = '12'
print(s.zfill(7))



